import React from 'react'
import PropTypes from 'prop-types'
import CommonHeader from '../component/common_header/index'
import TopicDetail from '../component/topic_detail/index'

const TopicDetailPage = props => (
  <div>
    <CommonHeader title="话题详情" />
    <TopicDetail topicId={props.match.params.topicId} />
  </div>
)
export default TopicDetailPage

TopicDetailPage.propTypes = {
  match: PropTypes.objectOf(Object),
}
